#include "TimeHelper.h"
#include "stdafx.h"

TimeHelper::TimeHelper(void)
{
}


TimeHelper::~TimeHelper(void)
{
}

long TimeHelper::GetTime() {
	SYSTEMTIME tm;
	GetSystemTime(&tm);
	return (long)tm.wMilliseconds + 
		   (long)tm.wSecond * 1000 + 
		   (long)tm.wMinute * 60000 + 
		   (long)tm.wHour * 3600000;// + 
		   //(long)tm.wDay * 86400000;
}

long TimeHelper::TimeSince(long time) {
	return GetTime() - time;
}